import React, { Component } from "react";
import { Switch, Route,Redirect } from "react-router-dom";
import ProductAddUpdate from "./add-update";
import ProductHome from "./Home";
import ProductDetail from "./Detail";
import './product.less'
// 商品路由
 export default class Product extends Component {
 
  render() {
    console.log("wxfandhyt");
    return (
      <Switch>
        <Route  path="/product/" component={ProductHome} exact />
        <Route  path="/product/addupdate" component={ProductAddUpdate} />			
				<Route  path="/product/detail" component={ProductDetail} />
				<Redirect to="/product" />
      </Switch>
    );
  }
}
 